package com.jianan.mis.app.menu;

import java.util.ArrayList;
import java.util.List;

import com.jianan.mis.data.domain.module.FunctionEntry;
import com.jianan.mis.data.domain.module.ITreeEntry;
import com.jianan.mis.data.domain.module.ModuleEntry;

public class MenuContent {
	static  public List<ITreeEntry> getMenu() {
		List<ITreeEntry> modules = new ArrayList<ITreeEntry>();
		
		// 留学业务
		ModuleEntry overseaStudy = new ModuleEntry("留学业务");
		List<ITreeEntry> osFunctions = new ArrayList<ITreeEntry>();
		osFunctions.add(new FunctionEntry("填写留学咨询表", "com.jianan.mis.app.overseastudy.AddOsConsultationView"));
		osFunctions.add(new FunctionEntry("留学咨询档案", "com.jianan.mis.app.overseastudy.OsConsultationArchiveView"));
		osFunctions.add(new FunctionEntry("留学咨询统计", "com.jianan.mis.app.overseastudy.OsConsultationStatView"));
		osFunctions.add(new FunctionEntry("未结案签约档案", "com.jianan.mis.app.overseastudy.UnfinishedOsContractArchiveView"));
		osFunctions.add(new FunctionEntry("留学材料作件", "com.jianan.mis.app.overseastudy.OsContractMaterialWorkView"));
		osFunctions.add(new FunctionEntry("已结案签约档案", "com.jianan.mis.app.overseastudy.FinishedOsContractArchiveView"));
		osFunctions.add(new FunctionEntry("总经理签约结案", "com.jianan.mis.app.overseastudy.OsContractManagerView"));
		osFunctions.add(new FunctionEntry("留学签约统计", "com.jianan.mis.app.overseastudy.OsContractStatView"));
		osFunctions.add(new FunctionEntry("部门签约档案", "com.jianan.mis.app.overseastudy.OsDepartmentContractArchiveView"));
		osFunctions.add(new FunctionEntry("学校档案", "com.jianan.mis.app.overseastudy.SchoolArchiveView"));
		overseaStudy.setChildren(osFunctions);
		
		// 移民业务
		/*
		ModuleEntry emigration = new ModuleEntry("移民业务");
		List<ITreeEntry> emiFunctions = new ArrayList<ITreeEntry>();
		emigration.setChildren(emiFunctions);
		*/
		
		// 劳务业务
		/*
		ModuleEntry work = new ModuleEntry("劳务业务");
		List<ITreeEntry> workFunctions = new ArrayList<ITreeEntry>();
		work.setChildren(workFunctions);
		*/
		
		// 基础数据
		ModuleEntry baseData = new ModuleEntry("基础数据");
		List<ITreeEntry> bdFunctions = new ArrayList<ITreeEntry>();
		bdFunctions.add(new FunctionEntry("修改密码", "com.jianan.mis.app.basedata.ChangePasswordView"));
		bdFunctions.add(new FunctionEntry("视图维护", "com.jianan.mis.app.basedata.ViewView"));
		bdFunctions.add(new FunctionEntry("组别信息维护", "com.jianan.mis.app.basedata.GroupView"));
		bdFunctions.add(new FunctionEntry("员工信息维护", "com.jianan.mis.app.basedata.EmployeeView"));
		bdFunctions.add(new FunctionEntry("材料类别维护", "com.jianan.mis.app.basedata.MaterialView"));
		bdFunctions.add(new FunctionEntry("国家信息维护", "com.jianan.mis.app.basedata.CountryView"));
		bdFunctions.add(new FunctionEntry("中间人信息维护", "com.jianan.mis.app.basedata.IntermanView"));
		bdFunctions.add(new FunctionEntry("部门信息维护", "com.jianan.mis.app.basedata.DepartmentView"));
		bdFunctions.add(new FunctionEntry("对内合作机构维护", "com.jianan.mis.app.basedata.InternalOrganizationView"));
		bdFunctions.add(new FunctionEntry("学校信息维护", "com.jianan.mis.app.basedata.SchoolView"));
		baseData.setChildren(bdFunctions);

		// 其它
		ModuleEntry other = new ModuleEntry("其它");
		List<ITreeEntry> otherFunctions = new ArrayList<ITreeEntry>();
		otherFunctions.add(new FunctionEntry("信息发布CMS", "com.jianan.mis.app.other.PloneView"));
		other.setChildren(otherFunctions);
		
		modules.add(overseaStudy);
		//modules.add(emigration);
		//modules.add(work);
		modules.add(baseData);
		modules.add(other);
		
		return modules;
	}
}
